<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的主页</title>
    <!-- Tailwind CSS 引入 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        /* 自定义简单动画 */
        .hover-scale {
            transition: transform 0.3s ease;
        }
        .hover-scale:hover {
            transform: scale(1.05);
        }
    </style>
</head>
<body class="min-h-screen flex flex-col bg-gray-50">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex">
                    <!-- 品牌LOGO -->
                    <div class="flex-shrink-0 flex items-center">
                        <span class="text-xl font-bold text-gray-800">我的主页</span>
                    </div>
                    <!-- 桌面端菜单 -->
                    <div class="hidden sm:-my-px sm:ml-6 sm:flex">
                        <a href="./index.html" class="inline-flex items-center px-1 pt-1 border-b-2 border-indigo-500 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out">首页</a>
                        <a href="./about/for_me.html" class="ml-8 inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out">关于</a>
                        <a href="./404.html" class="ml-8 inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out">联系</a>
                    </div>
                </div>
                <!-- 手机端菜单按钮 -->
                <div class="-mr-2 flex items-center sm:hidden">
                    <button id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
                        <svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
                        </svg>
                    </button>
                </div>
            </div>
        </div>
        <!-- 手机端菜单 -->
        <div id="mobile-menu" class="hidden sm:hidden">
            <div class="px-2 pt-2 pb-3 space-y-1">
                <a href="./index.html" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 bg-indigo-500 text-white">首页</a>
                <a href="./about/for_me.html" class="mt-1 block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">关于</a>
                <a href="./404.html">联系</a>
            </div>
        </div>
    </nav>

    <!-- 主内容 -->
    <main class="flex-1 container mx-auto px-4 py-16">
        <div class="text-center">
            <h1 class="text-4xl font-bold text-gray-800 mb-4">欢迎来到Claus的主页</h1>
            <p class="text-gray-600 mb-8 text-lg">这里是展示个人作品与分享知识的平台</p>
            <a id="contact-button" href="#" class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-lg hover-scale transition text-lg">立即联系</a>
            <!-- 添加图片 -->
            <img src="./image/image3.jpg" alt="个人图片" class="mt-8 mx-auto w-64 h-auto">
            <h1 class="text-4xl font-bold text-gray-800 mb-4">Claus祝你快乐</h1>
            <!--<p class="text-sm text-gray-600 mt-2">无法使用时请使用浏览器打开</p>-->
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-800 text-white py-6">
        <div class="container mx-auto px-4 text-center">
            <p class="text-sm">&copy; 2025 claus的主页。</p>
            <p class="text-sm mt-2">联系邮箱：3266928143@qq.com</p>
        </div>
    </footer>

    <script>
        // 手机菜单切换
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenu = document.getElementById('mobile-menu');
        
        mobileMenuButton.addEventListener('click', () => {
            mobileMenu.classList.toggle('hidden');
        });

        // 检测设备类型并设置联系按钮的 href
        const contactButton = document.getElementById('contact-button');
        const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

        if (isMobile) {
            contactButton.href = './about/for_me.html';
        } else {
            contactButton.href = './about/for_me.html';
        }
    </script>
</body>
</html>